package com.fitns.user.dao.organ;

import com.fitns.user.dto.organ.OrganTree;
import com.fitns.user.dto.organ.OrganVO;
import com.fitns.user.model.organ.Organ;

import java.util.List;

public interface OrganDao {

    Organ findById(Long id);

    void inser(Organ organ);

    List<OrganVO> findChildByParent(OrganVO organVO);

    OrganVO findParentById(Long id);

    Organ modify(OrganVO organVO);

    void delete(Long id);

    OrganVO findByIdOrName(OrganVO organVO);

    OrganVO search(OrganVO organVO);

    List<OrganTree> findChildTree(Long organId);

    OrganVO findForImport(OrganVO organVO);
}
